var app = angular.module("app",["ui.router"]);
//1设置一级路由
app.config(["$stateProvider","$urlRouterProvider",function ($stateProvider,$urlRouterProvider) {
	//11设置默认路由
	
	//12设置路由
	$stateProvider
	.state("shouye",{
		url:"/shouye",
		templateUrl:"html/shouye.html"
	})
	.state("fenlei",{
		url:"/fenlei",
		templateUrl:"html/fenlei/fenlei.html",
		controller:"flCtr"
	})
	.state("car",{
		url:"/car",
		templateUrl:"html/car/car.html",
		controller:"carCtr"
	})
	.state("zhibo",{
		url:"/zhibo",
		templateUrl:"html/zhibo/zhibo.html",
		controller:"zhiboCtr"
	})
}])
